using System;
using System.Collections;
using System.Data;
using System.Xml;



namespace OR.Lazarus.Library.DataTier.Compiled
{
   public class EffectCollection : OR.Lazarus.Library.DataTier.Compiled.Lazarus.EffectCollection
   {
      public EffectDetail this[ string pName ]
      {
         get
         {
            return this.FindByName( pName );
         }
      }

      public EffectDetail FindByName( string pName )
      {
         EffectDetail v_oReturn = null;

         foreach ( EffectDetail v_oCurrent in this.List )
         {
            if ( v_oCurrent.Name == pName )
            {
               v_oReturn = v_oCurrent;

               break;
            }
         }

         return ( v_oReturn );
      }
   }
}
   